package com.pactera.miyuangroup.db.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 系统菜单
 * </p>
 *
 * @author WangWu
 * @since 2018-04-13
 */
@TableName("sys_menu")
public class Menu extends Model<Menu> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private String id;
    /**
     * 菜单名称
     */
    private String menuName;
    /**
     * 菜单路径
     */
    private String menuComponent;
    /**
     * 菜单图标
     */
    private String menuPicCode;
    /**
     * 菜单说明
     */
    private String menuDescribe;
    /**
     * 菜单跳转路径
     */
    private String menuUrl;
    /**
     * 父级ID
     */
    private String pid;
    /**
     * 排序
     */
    private Integer sort;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getMenuComponent() {
        return menuComponent;
    }

    public void setMenuComponent(String menuComponent) {
        this.menuComponent = menuComponent;
    }

    public String getMenuPicCode() {
        return menuPicCode;
    }

    public void setMenuPicCode(String menuPicCode) {
        this.menuPicCode = menuPicCode;
    }

    public String getMenuDescribe() {
        return menuDescribe;
    }

    public void setMenuDescribe(String menuDescribe) {
        this.menuDescribe = menuDescribe;
    }

    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Menu{" +
                "id=" + id +
                ", menuName=" + menuName +
                ", menuComponent=" + menuComponent +
                ", menuPicCode=" + menuPicCode +
                ", menuDescribe=" + menuDescribe +
                ", menuUrl=" + menuUrl +
                ", pid=" + pid +
                ", sort=" + sort +
                "}";
    }
}
